#define _CRT_SECURE_NO_WARNINGS  1

#include<vector>
#include<iostream>
using namespace std;
/*
class Board {
public:
    bool checkWon(vector<vector<int> > board)
    {
        if (board[0][0] == 1 && board[0][1] == 1 && board[0][2] == 1)
        {
            return true;
        }
        else if (board[1][0] == 1 && board[1][1] == 1 && board[1][2] == 1)
        {
            return true;
        }
        else if (board[2][0] == 1 && board[2][1] == 1 && board[2][2] == 1)
        {
            return true;
        }
        else if (board[0][0] == 1 && board[1][0] == 1 && board[2][0] == 1)
        {
            return true;
        }
        else if (board[1][0] == 1 && board[1][1] == 1 && board[1][2] == 1)
        {
            return true;
        }
        else if (board[2][0] == 1 && board[2][1] == 1 && board[2][2] == 1)
        {
            return true;
        }
        else if (board[1][1] == 1 && board[2][2] == 1 && board[0][0] == 1)
        {
            return true;
        }
        else return false;

    }
};

*/

/*
#include <iostream>
#include<string>
#include<vector>

using namespace std;


int main()
{
    string s;
    cin >> s;
    int score = 0;
    if (s.size() >= 5 && s.size() <= 7)
    {
        score += 10;
    }
    else if (s.size() <= 4 && s.size() >= 0)
    {
        score += 5;
    }
    else if (s.size() >= 8)
    {
        score += 25;
    }

    int numcount = 0;
    int charcount = 0;
    int asize = 0;
    int Asize = 0;
    int totalsize = 0;
    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] >= '0' && s[i] <= '9')
        {
            numcount++;
        }
        else if (s[i] >= 0x21 && s[i] <= 0x2F || s[i] >= 0x3A && s[i] <= 0x40 || s[i] >= 0x5B && s[i] <= 0x60 || s[i] >= 0x7B && s[i] <= 0x7E)
        {
            charcount++;

        }

        else if (s[i] >= 'a' && s[i] <= 'z')
        {
            asize++;
            totalsize++;

        }
        else if (s[i] >= 'A' && s[i] <= 'Z')
        {
            Asize++;
            totalsize++;

        }
    }

    if (numcount == 1)score += 10;
    if (charcount == 1)score += 10;
    if (asize == totalsize && asize!=0)score += 10;
    if (Asize == totalsize && Asize!=0)score += 10;

    if (asize != totalsize &&  Asize != totalsize)score += 20;
    if (numcount > 1) score += 20;
    if (charcount > 1)score += 25;


    if (Asize && charcount && Asize && numcount) score += 5;
    else if (charcount && totalsize && numcount) score += 3;
    else if (numcount && totalsize)  score += 2;


    if (score >= 90)
    {
        cout << "VERY_SECURE";
    }
    else if (score >= 80)
    {
        cout << "SECURE";
    }
    else if (score >= 70)
    {
        cout << "VERY_STRONG";
    }
    else if (score >= 60)
    {
        cout << "STRONG";
    }
    else if (score >= 50)
    {
        cout << "AVERAGE";
    }
    else if (score >= 20)
    {
        cout << "WEAK";
    }
    else if (score >= 0)
    {
        cout << "VERY_WEAK";
    }
    return 0;
}

*/


class A
{
public:
    A()
    {
        cout << "A" << endl;
    }
    ~A()
    {
        cout << "~A" << endl;
    }

private:
    int _a;
};

void test1()
{
    A a[5];
  //   A* b[6];          ????
}


void test2()
{
    const int a = 5;
    int* pa = (int*)&a;
    *pa = 10;
    cout << *pa <<' ' << a << endl;
    cout << pa <<' ' << &a << endl;
}


class B
{};

class Test
{
public:

    Test()
    {
        cout << "Test()" << endl;
    }
};



void test3()
{
    const int a = 10;
    int* p = (int*)(&a);
    *p = 20;
    cout << "a=" << a << ",*p=" << *p << endl;
}

int main()
{
    //test1();
    // test2();
   // B b;
   // cout << sizeof(B)<< endl; // 1
   // Test x[5];
   // Test* x2[6];
    test3();
}